package com.gwclh.personnel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 实习表，说明，若要查询实习员工，通过查询状态为0与2的emp_id，若查询已转正员工，则查询状态为1
 * </p>
 *
 * @author gzhhh
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_internship")
@ApiModel(value="Internship对象", description="实习表，说明，若要查询实习员工，通过查询状态为0与2的emp_id，若查询已转正员工，则查询状态为1")
public class Internship implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "员工id")
    private Integer empId;

    @ApiModelProperty(value = "开始日期")
    private Date startDate;

    @ApiModelProperty(value = "结束日期")
    private Date endDate;

    @ApiModelProperty(value = "试用状态：0正常，1转正，2延期，3未录用，默认值0，若查询实习员工，则查询状态为0，2的emp_id即可")
    private Integer internStatus;

    @ApiModelProperty(value = "评语")
    private String comment;

    @ApiModelProperty(value = "操作日期,转正日期,延期日期,离职日期")
    private Date operDate;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "操作用户id")
    private Integer operId;

    @ApiModelProperty(value = "创建日期，自动填充")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
